Optimal. Leaf size=30 \[ a x-\frac {b x}{2}+\frac {b \cosh (c+d x) \sinh (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2715, 8}
\begin {gather*} a x+\frac {b \sinh (c+d x) \cosh (c+d x)}{2 d}-\frac {b x}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rubi steps
\begin {align*} \int \left (a+b \sinh ^2(c+d x)\right ) \, dx &=a x+b \int \sinh ^2(c+d x) \, dx\\ &=a x+\frac {b \cosh (c+d x) \sinh (c+d x)}{2 d}-\frac {1}{2} b \int 1 \, dx\\ &=a x-\frac {b x}{2}+\frac {b \cosh (c+d x) \sinh (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 36, normalized size = 1.20 \begin {gather*} a x+\frac {b (-c-d x)}{2 d}+\frac {b \sinh (2 (c+d x))}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.74, size = 32, normalized size = 1.07
method | result | size |
default | \(a x +\frac {b \left (\frac {\cosh \left (d x +c \right ) \sinh \left (d x +c \right )}{2}-\frac {d x}{2}-\frac {c}{2}\right )}{d}\) | \(32\) |
derivativedivides | \(\frac {\left (d x +c \right ) a +b \left (\frac {\cosh \left (d x +c \right ) \sinh \left (d x +c \right )}{2}-\frac {d x}{2}-\frac {c}{2}\right )}{d}\) | \(37\) |
risch | \(a x -\frac {b x}{2}+\frac {{\mathrm e}^{2 d x +2 c} b}{8 d}-\frac {{\mathrm e}^{-2 d x -2 c} b}{8 d}\) | \(39\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 38, normalized size = 1.27 \begin {gather*} -\frac {1}{8} \, b {\left (4 \, x - \frac {e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 30, normalized size = 1.00 \begin {gather*} \frac {{\left (2 \, a - b\right )} d x + b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 51, normalized size = 1.70 \begin {gather*} a x + b \left (\begin {cases} \frac {x \sinh ^{2}{\left (c + d x \right )}}{2} - \frac {x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac {\sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \sinh ^{2}{\left (c \right )} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 38, normalized size = 1.27 \begin {gather*} -\frac {1}{8} \, b {\left (4 \, x - \frac {e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + a x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 23, normalized size = 0.77 \begin {gather*} a\,x-\frac {b\,x}{2}+\frac {b\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )}{4\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________